package design_1_factory.demo3.factory;

import design_1_factory.demo3.server.QQAService;
import design_1_factory.demo3.server.QQBService;
import design_1_factory.demo3.server.QQCService;
import design_1_factory.demo3.server.impl.B1ServiceImpl;
import design_1_factory.demo3.server.impl.B2ServiceImpl;
import design_1_factory.demo3.server.impl.B3ServiceImpl;

/**
 * 创建一个抽象工厂
 *
 * @author wangsong
 * @email 1720696548@qq.com
 * @date 2022/1/18 11:35
 */
public  class BFactory extends QQAbstractFactory {

	@Override
	public QQAService background(String background) {

		return null;
	}

	@Override
	public QQBService border(String border) {
		if (border.equals("B1")) {
			return new B1ServiceImpl();
		} else if (border.equals("B2")) {
			return new B2ServiceImpl();
		} else if (border.equals("B3")) {
			return new B3ServiceImpl();
		}
		return null;
	}

	@Override
	public QQCService typeface(String shape) {
		return null;
	}
}